


#!/bin/bash




SPACE_USED=$(df -h | grep '^/dev'  | grep -Eo '[0-9]+%' | tr -d '%' | sort -r | head -1)

[ ${SPACE_USED} -gt 80 ] && echo "磁盘空间利用率已经超过80%,请立即处理!!!" |  mail -s "磁盘空间利用率已经超过80%,请立即处理!!!" -a "disk_usage_warning.sh" 13003849480@139.com
